package com.beagle.njddapp.net;

import java.util.List;

/**
 * 字典list返回
 */

public class BaseZdHttpListResponse<T extends BaseResponseBean> implements BaseResponse {


    /**
     * 返回结果code
     */
    public String code;
    /**
     * 返回数据
     */
    public List<T> items;
    /**
     * 信息描述
     */
    public String desc;
    /**
     * 返回的token
     */
    public String token;

    public int totalCount;

    @Override
    public String getResponseMsg() {
        return desc;
    }

    @Override
    public int getResponseCode() {
        try {
            return Integer.parseInt(code);
        }catch (Exception e){
            return -5;
        }
    }
}
